package descentFly.app.dialogs
{
	import descentFly.app.df_block;
	import descentFly.app.df_component;
	import descentFly.app.df_modalLayer;
	import descentFly.app.df_window;
	import descentFly.app.managePanel.chat.df_chat;
	
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class df_chatWindow extends df_window {
		public static const SIZE: Point = new Point(760, 300);
		
		public function df_chatWindow(a_parent:df_modalLayer, awidth:int=0, aheight:int=0, styleClass:Object='', modal:Boolean=false, canClose:int=2) {
			super(a_parent, SIZE.x, SIZE.y, 'chatWindow', false, 1);
			title.text = locale.CHAT;
		}
		
		override protected function createDialogComponents(a_layer:df_block):void {
			var inner: Rectangle = a_layer.getInner(); 
			new df_chat(a_layer, social.user, inner.x, inner.y, inner.width, inner.height);
		}
		
		override protected function getLayerRect(): Rectangle {
			return getInner(0, 30);
		}
		
		override protected function getButtonsRect(): Rectangle {
			return null;
		}
		
		
	}
}